import request from '@/utils/request'
const baseUrl = '/ap/system'
export class FirmwareManagementApi{
     //获取ap版本列表
     static reqGetApVersionList(){
        return request.post(`${baseUrl}/ap_version_list_get`)
     }

     //获取当前ap版本
     static reqGetCurrentApVersion(){
        return request.post(`${baseUrl}/ap_version_cur_get`)
     }

     //切换ap版本
     static reqSwitchApVersion(data:any){
        return request.post(`${baseUrl}/ap_version_sel`,data)
     }

    //删除ap版本
    static reqDeleteApVersion(data:any){
        return request.post(`${baseUrl}/ap_version_del`,data)
    }

    //获取cp固件列表
    static reqGetCpVersionList(){
        return request.post(`${baseUrl}/cp_firmware_list_get`)
    }

   //  获取当前cp固件
   static reqGetCurrentCpVersion(){
        return request.post(`${baseUrl}/cp_firmware_cur_get`)
   }

   //  切换cp当前固件
   static reqSwitchCpVersion(data:any){
        return request.post(`${baseUrl}/cp_firmware_sel`,data)
   }

   // 删除cp固件
   static reqDeleteCpVersion(data:any){
        return request.post(`${baseUrl}/cp_firmware_del`,data)
   }

   // 获取cp设备状态
   static reqGetCpDeviceStatus(){
        return request.post(`${baseUrl}/cp_device_info`)
   }
}
